<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%--
  Created by IntelliJ IDEA.
  User: zhang_yao_wu1993
  Date: 15/4/21
  Time: 下午10:33
--%>
<!DOCTYPE html>
<html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head lang="en">
    <meta charset="UTF-8">
    <title>ZeRur</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="Other/Lib/jquery-2.1.3.js"></script>
    <script type="text/javascript" src="Other/Lib/ParticleGround/jquery.particleground.min.js"></script>
    <link rel="stylesheet" href="Other/Lib/ParticleGround/jquery.particleground.css"/>
    <script type="text/javascript" src="Other/Lib/SemanticUI/dist/semantic.min.js"></script>
    <link rel="stylesheet" href="Other/Lib/SemanticUI/dist/components/button.min.css"/>
    <script type="text/javascript" src="Other/JavaScript/blog_Index.js"></script>
</head>
<body>
<div id="particles">
    <div class="intro">
        <h1>ZeRur Blog</h1>

        <p>You can’t have a better tomorrow if you don’t stop thinking about yesterday.</p>

        <div class="ui buttons">
            <sec:authorize access="hasAnyRole('ROLE_ADMIN', 'ROLE_USER')">
                <a href="/MainPage">
                    <div class="ui button">
                        进入
                    </div>
                </a>
            </sec:authorize>
            <sec:authorize access="isAnonymous()">
                <a href="/MainPage">
                    <div class="ui button">游客</div>
                </a>
                <div class="or"></div>
                <a href="/LoginPage">
                    <div class="ui button">
                        登陆
                    </div>
                </a>
                <div class="or"></div>
                <a href="/RegisterPage">
                    <div class="ui button">注册</div>
                </a>
            </sec:authorize>
        </div>
    </div>
</div>
</body>
</html>